customize_render_control_{$this->id}
Action HookDescription
Fires just before a specific Customizer control is rendered. The dynamic portion of the hook name, `$this->id`, refers to the control ID.Hook Information
File Location |
wp-includes/class-wp-customize-control.php
View on GitHub
|
Hook Type | Action |
Line Number | 420 |
Hook Parameters
Type | Name | Description |
---|---|---|
WP_Customize_Control
|
$control
|
WP_Customize_Control instance. |
Usage Examples
Basic Usage
<?php
// Hook into customize_render_control_{$this->id}
add_action('customize_render_control_{$this->id}', 'my_custom_function', 10, 1);
function my_custom_function($control) {
// Your custom code here
}
Source Code Context
wp-includes/class-wp-customize-control.php:420
- How this hook is used in WordPress core
<?php
415 *
416 * @since 3.4.0
417 *
418 * @param WP_Customize_Control $control WP_Customize_Control instance.
419 */
420 do_action( "customize_render_control_{$this->id}", $this );
421
422 $this->render();
423 }
424
425 /**
PHP Documentation
<?php
/**
* Fires just before a specific Customizer control is rendered.
*
* The dynamic portion of the hook name, `$this->id`, refers to
* the control ID.
*
* @since 3.4.0
*
* @param WP_Customize_Control $control WP_Customize_Control instance.
*/
Quick Info
- Hook Type: Action
- Parameters: 1
- File: wp-includes/class-wp-customize-control.php
Related Hooks
Related hooks will be displayed here in future updates.